package apis.youtube
{
	public class YouTubeTokenHacker
	{
		
		public static function findToken( datas : String ) : String {
			//var regex  : RegExp = new RegExp( "/SWFObject(\"\\w+\.swf\?([\\w=&])\"", 'i' );
			var regex  : RegExp = new RegExp( 'SWFObject\\("[\\w/]+\\.swf\\?([\\w&=-]+)' );
			var results : Object = regex.exec( datas );
			trace( results );
			
			return results[1];
		}
	}
}